/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

$(document).ready(function() {
 //if you clikc on an image thumb, load this kid
    $(".kidthumbtile").click(function(){
        //reset objects
        
        //read data
        var selectedIndex = $(this).attr("id").substring(4);
        $.ajax({
            url: 'kid_actions.php',
            type: "POST",
            data: {kidId: selectedIndex, action: "readKidFamilyAndAdmin"},
            dataType: "xml",
            success: function(data) {
               alert(data);
            }
        });
    });
})